<?php

namespace App\Http\Requests\Service\Util;

use App\Http\Requests\ApiRequest;
use App\Models\Customer\DeviceAccount;
use Illuminate\Validation\Rule;

/**
 * @property string channel
 * @property string message
 * @property string event
 */
class PusherMessageRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'channel' => 'required|string|min:1',
            'message' => 'required|string|min:1',
            'event'   => 'required|string|min:1',
        ];
    }

}
